<!DOCTYPE html>
<html>

<head>
  <title>订单管理</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js"></script>
  <link rel="stylesheet" href="../css/bootstrap.min.css">
  <link rel="stylesheet" href="../css/system.css">
  <link rel="icon" href="../favicon.ico">
  <link rel="stylesheet" href="../font/iconfont.css">
  <script src="../font/iconfont.js"></script>
  <link rel="stylesheet" href="../css/style.css">
  <script src="../js/ajax.js"></script>
  <script src="../js/checkLogin.js"></script>

  <style>

  </style>
</head>

<body>

  <main>

    <div class="d-flex flex-column flex-shrink-0 p-3 bg-primary text-white" style="width: 220px;">
      <span class="fs-4"> <span class="iconfont icon-jiudianzhusu" style="font-size:24px ;"></span>five HOTEL</span>
      <hr>
      <ul class="nav nav-pills flex-column mb-auto">
        <li class="nav-item">
          <a href="./home.html" class="nav-link active">
            <span class="iconfont icon-zhuye"></span> &nbsp;主页
          </a>
        </li>
        <li>
          <a href="./roomMessage.html" class="nav-link text-white">
            <span class="iconfont icon-yingyongzhongxin"></span> &nbsp;基本房间信息管理
          </a>
        </li>
        <li>
          <a href="./roomSortMessage.html" class="nav-link text-white">
            <span class="iconfont icon-yingyongzhongxin"> &nbsp;房间分类信息管理
          </a>
        </li>
        <li>
          <a href="./order.html" class="nav-link text-white">
            <span class="iconfont icon-yingyongzhongxin"> 订单管理
          </a>
        </li>
        <li>
          <a href="./custmoer.html" class="nav-link text-white">
            <span class="iconfont icon-yingyongzhongxin"> &nbsp;顾客信息管理
          </a>
        </li>
        <li>
          <a href="./employee.html" class="nav-link text-white">
              <span class="iconfont icon-yingyongzhongxin"> &nbsp;员工信息管理
          </a>
      </li>
        <li>
          <a href="./updatePssword.html" class="nav-link text-white">
            <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-key"
              viewBox="0 0 16 16">
              <path
                d="M0 8a4 4 0 0 1 7.465-2H14a.5.5 0 0 1 .354.146l1.5 1.5a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0L13 9.207l-.646.647a.5.5 0 0 1-.708 0L11 9.207l-.646.647a.5.5 0 0 1-.708 0L9 9.207l-.646.647A.5.5 0 0 1 8 10h-.535A4 4 0 0 1 0 8zm4-3a3 3 0 1 0 2.712 4.285A.5.5 0 0 1 7.163 9h.63l.853-.854a.5.5 0 0 1 .708 0l.646.647.646-.647a.5.5 0 0 1 .708 0l.646.647.646-.647a.5.5 0 0 1 .708 0l.646.647.793-.793-1-1h-6.63a.5.5 0 0 1-.451-.285A3 3 0 0 0 4 5z" />
              <path d="M4 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0z" />
            </svg> &nbsp;账户管理
          </a>
        </li>
      </ul>
      <hr>  
    </div>

    <div class="b-example-divider" style="width:calc(100% - 220px);overflow: hidden;">
      <!-- 头部 -->
      <div class="header"
        style="width: 100%; height:66px;line-height: 66px; background-color:#0d6efd; overflow: hidden;">
        <div class="row">
          <div class="col-lg-3" style="color:#fff; font-size:30px; padding-left:20px;">
            <span class="fs-4"> <svg class="icon" aria-hidden="true" style="width:50px;height:50px;">
                <use xlink:href="#icon-jiudianzhusu"></use>
              </svg>
            </span>
          </div>
          <div class="col-lg-5" style="text-align: center;"><span style="background: linear-gradient(to bottom,#f0610e, #e8771a, #fff34a);-webkit-background-clip: text;color: transparent; font-size: 25px;">FIVE
              HOTEL 后台管理系统</span>
          </div>
          <div class="col-lg-4" style="color:#fff; font-size:25px;padding-right: 35px;text-align: right;">欢迎你！
            <img src="../img/avatar.jpg" style="width: 40px; border-radius:35%;"> 坤哥&emsp;
            <button type="button" class="btn btn-danger btn-sm">退出</button>
          </div>
        </div>
      </div>
      <div class="content" style="border: none;">
        <!--内容区域-->
        <!-- <div class="row"> -->
          <button class="btn btn-primary btn-sm"  data-bs-toggle="modal"
            data-bs-target="#myModal1">添加</button>
          <div id="main" style="width: 600px;height:400px;"></div>

          <div class="container mt-3">

            <table class="table " style="margin-top:-400px; margin-left:5px; text-align:center;">
              <thead class="table-dark">
                <tr>
                  <th>订单号</th>
                  <th>房间编号</th>
                  <th>身份证号</th>
                  <th>订单状态</th>
                  <th>入住时间</th>
                  <th>退房时间</th>
                  <th>操作</th>
                </tr>
              </thead>
              <tbody>


              </tbody>
            </table>

          </div>


        <!-- </div> -->
      </div>
      <!--添加模态框-->
      <div>
        <div class="modal fade" id="myModal1">
          <div class="modal-dialog modal-dialog-centered">
            <div class="modal-content">

              <!-- 模态框头部 -->
              <div class="modal-header">
                <h4 class="modal-title">添加客户订单</h4>
                <button type="button" class="btn-close" data-bs-dismiss="modal"></button>
              </div>

              <!-- 模态框内容 -->
              <div class="modal-body">
                <form>
                  
                  <div class="row" style="margin:10px">
                    <div class="col-lg-2">
                      <span style="font-size: 24px">房间编号</span>
                    </div>
                    <div class="col-lg-10">
                      <input type="number" class="form-control" id="userordernumber" placeholder="房间编号">
                    </div>
                  </div>
                  <div class="row" style="margin:10px">
                    <div class="col-lg-2">
                      <span style="font-size: 24px">身份证号</span>
                    </div>
                    <div class="col-lg-10">
                      <input type="text" class="form-control" id="userIdcard" placeholder="身份证号">
                    </div>
                  </div>
                  <div class="row" style="margin:10px">
                    <div class="col-lg-2">
                      <span style="font-size: 24px">订单情况</span>
                    </div>
                    <div class="col-lg-10">
                      <input type="text" class="form-control" id="userorderstatus" placeholder="订单情况">
                    </div>
                  </div>

                  <div class="row" style="margin:10px">
                    <div class="col-lg-2">
                      <span style="font-size: 24px">入住时间</span>
                    </div>
                    <div class="col-lg-10">
                      <input type="text" class="form-control" id="usercheckintime" placeholder="入住时间">
                    </div>
                  </div>
                  <div class="row" style="margin:10px">
                    <div class="col-lg-2">
                      <span style="font-size: 24px">退房时间</span>
                    </div>
                    <div class="col-lg-10">
                      <input type="text" class="form-control" id="usercheckouttime" placeholder="退房时间">
                    </div>
                  </div>
                </form>
              </div>

              <!-- 模态框底部 -->
              <div class="modal-footer">
                <button type="button" class="btn btn-primary" onclick="ok()">确定</button>
                <button type="button" class="btn btn-danger" data-bs-dismiss="modal">关闭</button>
              </div>

            </div>
          </div>
        </div>

      </div>
      <!--修改模态框-->
      <div>
        <div class="modal" id="myModal2">
          <div class="modal-dialog modal-dialog-centered">
            <div class="modal-content">
              <input type="hidden" id="updateroomid">
              <!-- 模态框头部 -->
              <div class="modal-header">
                <h4 class="modal-title">修改订单资料</h4>
                <button type="button" class="btn-close" data-bs-dismiss="modal"></button>
              </div>

              <!-- 模态框内容 -->
              <div class="modal-body">
                <form>
                
                  <div class="row" style="margin:10px">
                    <div class="col-lg-2">
                      <span style="font-size: 24px">房间编号</span>
                    </div>
                    <div class="col-lg-10">
                      <input type="number" class="form-control" id="updateordernumber" placeholder="房间编号">
                    </div>
                  </div>
                  <div class="row" style="margin:10px">
                    <div class="col-lg-2">
                      <span style="font-size: 24px">身份证号</span>
                    </div>
                    <div class="col-lg-10">
                      <input type="text" class="form-control" id="updateIdcard" placeholder="身份证号">
                    </div>
                  </div>
                  <div class="row" style="margin:10px">
                    <div class="col-lg-2">
                      <span style="font-size: 24px">订单情况</span>
                    </div>
                    <div class="col-lg-10">
                      <input type="text" class="form-control" id="updateorderstatus" placeholder="订单情况">
                    </div>
                  </div>

                  <div class="row" style="margin:10px">
                    <div class="col-lg-2">
                      <span style="font-size: 24px">入住时间</span>
                    </div>
                    <div class="col-lg-10">
                      <input type="text" class="form-control" id="updatecheckintime" placeholder="入住时间">
                    </div>
                  </div>
                  <div class="row" style="margin:10px">
                    <div class="col-lg-2">
                      <span style="font-size: 24px">退房时间</span>
                    </div>
                    <div class="col-lg-10">
                      <input type="text" class="form-control" id="updatecheckouttime" placeholder="退房时间">
                    </div>
                  </div>
                </form>
              </div>

              <!-- 模态框底部 -->
              <div class="modal-footer">
                <button type="button" class="btn btn-success" onclick="orderUpdate()">确认</button>
                <button type="button" class="btn btn-danger" data-bs-dismiss="modal">关闭</button>
              </div>

            </div>
          </div>
        </div>
      </div>
    </div>

    </div>
  </main>
</body>
<script src="../js/order.js"></script>
</html>